﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace LevenBlog.Core.WcfService {
    [DataContract]
    public class ServiceMessage {
        [DataMember]
        public string Info { get; set; }

        [DataMember]
        public string Title { get; set; }

        [DataMember]
        public ServiceMessageType Type { get; set; }

        public ServiceMessage() {
            Type = ServiceMessageType.Infomation;
            Info = String.Empty;
            Title = String.Empty;
        }
    }

    [DataContract]
    public enum ServiceMessageType{
        Infomation,
        Warning,
        Error,
        Abort
    }
}
